<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbpoaCreateDlg" widgetVar="PyfntbpoaCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreatePyfntbpoaTitle}">

            <h:form id="PyfntbpoaCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{pyfntbpoaController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreatePyfntbpoaLabel_anio}" for="anio" />
                        <p:inputText id="anio" value="#{pyfntbpoaController.selected.anio}" title="#{myBundle.CreatePyfntbpoaTitle_anio}" required="true" requiredMessage="#{myBundle.CreatePyfntbpoaRequiredMessage_anio}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbpoaLabel_fechaemision}" for="fechaemision" />
                        <p:calendar id="fechaemision" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbpoaController.selected.fechaemision}" title="#{myBundle.EditPyfntbpoaTitle_fechaemision}"  showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbpoaLabel_fechacierre}" for="fechacierre" />
                        <p:calendar id="fechacierre" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbpoaController.selected.fechacierre}" title="#{myBundle.EditPyfntbpoaTitle_fechacierre}"  showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbpoaLabel_aprobacion}" for="aprobacion" />
                        <p:selectBooleanCheckbox id="aprobacion" value="#{pyfntbpoaController.selected.aprobacion}" title="#{myBundle.EditPyfntbpoaTitle_aprobacion}" required="true" requiredMessage="#{myBundle.EditPyfntbpoaRequiredMessage_aprobacion}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbpoaLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbpoaController.selected.fecharegistro}" title="#{myBundle.EditPyfntbpoaTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditPyfntbpoaRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbpoaLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyfntbpoaController.selected.observaciones}" title="#{myBundle.CreatePyfntbpoaTitle_observaciones}" required="true" requiredMessage="#{myBundle.CreatePyfntbpoaRequiredMessage_observaciones}"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbpoaController.saveNew}" value="#{myBundle.Save}" update="display,:PyfntbpoaListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbpoaCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbpoaCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
